<style>

.table tr td {  border: 1px solid #CCCCCC;}
</style>




<div id="ppackdiv" style="float:right;background-color: #F1F9FF;">
				
              
                
                <span style="float:right;background-color: #F1F9FF;">
                  <label for="curPackItemName" style="width:560px;text-align:left;">
				
				</label><br />
				<table class="table">
					<th>{l s='Reference'}</th>
					<th>{l s='List of products for that pack'}</th>
					<th>{l s='Available quantity'}</th>
				
					{foreach $pack_items as $pack_item}
						<tr>
						<td>
						{$pack_item.reference}
						</td>
						<td>
						<div id="divPackItems">
						{$pack_item.pack_quantity} x {$pack_item.name}
						</div>
						</td>
						
						<td>
						{$pack_item.stock}
						</td>
						</tr>
						
					
						
					{/foreach}
			
				</table>
				
				<br />
				
			</span>
			


<span id="ppackdivs" style="font-size:18px; float: leftt;background-color: #F1F9FF;" {if !($product_type == Product::PTYPE_PACK)}style="display: none;"{/if}>

				<label for="curPackItemName" style="width:560px;text-align:left;">
					{l s='Enter the quantity to use, ( the alert quantity is '} <span style="color:red">{$product->minimal_quantity})</span>
					
					<p class="hint" style="display:none;" id="becareful">
					</p>
					
				</label><br /><br />

				
								
				<form id="{$table}_form" class="defaultForm {$name_controller}" action="{$current}&{if !empty($submit_action)}{$submit_action}=1{/if}&action={$params.action}&ajax=1&token={$token}" method="post" enctype="multipart/form-data" style="min-height:142px">
				
				<input type="text" style=" font-size: 20px; font-weight: bold;height: 32px;  " name="curPackItemQty" id="curPackItemQty" value="1" size="1" />
				
				<input type="hidden" name="inputPackItems" id="inputPackItems" value="{$input_pack_items}" />
				<input type="hidden" name="namePackItems" id="namePackItems" value="{$input_namepack_items}" />
                
				<input type="hidden" size="2" id="curPackItemId" value="{$product->id}" />
				<input type="hidden" size="25" id="curPackItemName" value="{$product->name}" />

				<span id="remove_quantity_item" class="button" style="cursor: pointer;" onclick="removePackQuantity({$product->minimal_quantity},{$curPackAvailQty}, {$controller}, {$token}, {$action}, {$params});return false"
				>
					{l s='Valider'}
				</span>
                
                
				


				
					<input type="hidden" name="{$product->id}" id="{$product->id}" value="{$product->id}" />
					
					
				
				</form>

				

				
				<!--<p class="hint" style="display:block">{l s='You cannot add combinations to a pack.'}</p>
				-->

			
		</span>
        
        </div>
		
		

			
		